package engine.gameObject.model;

import engine.shader.Shader;

public class Animation {

	private boolean resetUpdate;
	private boolean resetApply;
	
	public void apply(Shader shader) {
		if(!resetApply) {
			return;
		}
		
		//TODO aply animation to the shader
		
		resetApply = true;
	}
	
	public void update(float timeElapsed) {
		if(!resetUpdate) {
			return;
		}
		
		//TODO update animation
		
		resetUpdate = false;
	}
	
	public void resetUpdate() {
		resetUpdate = true;
	}
	
	public void resetApply() {
		resetApply = true;
	}
}
